
package org.apache.servicecomb.fence.resource;

import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(value = "auth-service", path = "/authentication/v1")
public interface AuthFeign {

  @PostMapping(path = "/token")
  Map grantToken(@RequestBody Map<String, String> parameters);

//  @PostMapping(path = "/token/query")
//  OpenIDToken queryToken(@RequestParam("access_token") String accessToken);
}